#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
#include <string.h>
#include <sys/mount.h>

int main(int argc, char * argv[])
{
	if(argc < 3){
		printf("mount /dev/xxx path\n");
		return -1;
	}

	if(mount(argv[1], argv[2], O_RDWR) < 0){
		printf("mount failed: %s\n", strerror(errno));
		return -1;
	}

	return 0;
}
